package com.fxy.controller;

import com.fxy.Entity.QuestionEntity;
import com.fxy.Service.AddQuestionService;
import com.fxy.mapper.AddQuestionMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/add")
@Api( tags ="添加")
public class AddQuestionController {
//
//    @Autowired
//    private AddQuestionService addServiceService;
    @Autowired
    AddQuestionMapper addQuestionMapper;
@PostMapping("/addquestion")
@ApiOperation("添加问题")
    public void addQuestion(int studentId, int teacherId, String questionTitle) {
//    addServiceService.addQuestion(studentId,teacherId,questionTitle);
addQuestionMapper.addQuestion(studentId,teacherId,questionTitle);
    }
}
